package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "t_sensor_code")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SensorCode extends BaseEntity {
    @Column(name = "nodename", length = 50)
    private String nodeName;

    @Column(name = "nodeType", length = 50)
    private String nodeType;

    @Column(name = "sensorCode", length = 50)
    private String sensorCode;

    @Column(name = "timeData", length = 50)
    private Date timeData;//时间list

    @Column(name = "sensorName", length = 50)
    private String sensorName;  //传感器名称

    @Column(name = "unitData", length = 50)
    private String unitData;  //单位

    @Column(name = "valData", length = 50)
    private String valData;  //数值
}
